package com.antdesignbackend.backend.news.newsusers.service.impl;


import com.antdesignbackend.backend.news.newsusers.entity.entityVo.NewsUsersVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.antdesignbackend.backend.news.newsusers.mapper.NewsUsersMapper;
import com.antdesignbackend.backend.news.newsusers.entity.NewsUsers;
import com.antdesignbackend.backend.news.newsusers.service.NewsUsersService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;


@Service
public class NewsUsersServiceImpl extends ServiceImpl<NewsUsersMapper, NewsUsers> implements NewsUsersService {
    @Autowired
    NewsUsersMapper newsUsersMapper;

    @Override
    public List<NewsUsersVo> search(QueryWrapper<NewsUsersVo> wrapper, Page<NewsUsersVo> page) {
        return newsUsersMapper.search(wrapper,page);
    }

    @Override
    public Integer count(QueryWrapper<NewsUsersVo> wrapper) {
        return newsUsersMapper.count(wrapper);
    }
}
